﻿#include <iostream>

extern "C" {
	int _fastcall asm_fastcall_add(int a, int b);
	int _cdecl asm_cdeclcall_add(int a, int b);
	int _stdcall asm_stdcall_add(int a, int b);
}

int main()
{
	int arg1 = 1;
	int arg2 = 2;
	int c = asm_cdeclcall_add(arg1, arg2);
	printf("asm_cdeclcall_add(%d,%d) := %d\n", arg1, arg2, c);

	c = asm_fastcall_add(arg1, arg2);
	printf("asm_fastcall_add(%d,%d)  := %d\n", arg1, arg2, c);

	c = asm_stdcall_add(arg1, arg2);
	printf("asm_stdcall_add(%d,%d)  := %d\n", arg1, arg2, c);
	return 0;
}